package com.chao.cloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @date 2021-06-11 10:33
 */
@RestController
public class PayMentController {
    @Value("${server.port}")
    private Integer serverPort;

    @GetMapping(value = "/payment/getPort")
    public Integer getPort(){
        return serverPort;
    }
}
